package com.hades.example.java.refactoring.after.c11.c11_12_replace_delegation_with_inheritance;

public class Person {
    String _name;

    public String getName() {
        return _name;
    }

    public void setName(String arg) {
        _name = arg;
    }

    public String getLastName() {
        return _name.substring(_name.lastIndexOf(' ') + 1);
    }
}
